package com.jml.security.session;

import java.io.IOException;
import javax.servlet.ServletException;
import org.springframework.security.web.session.SessionInformationExpiredEvent;
import org.springframework.security.web.session.SessionInformationExpiredStrategy;

public class JmlExpiredSessionStrategy extends AbstractSessionStrategy  implements SessionInformationExpiredStrategy {

	public JmlExpiredSessionStrategy(String invalidSessionUrl) {
		super(invalidSessionUrl);
	}

	public void onExpiredSessionDetected(SessionInformationExpiredEvent event) throws IOException, ServletException {
		onSessionInvalid(event.getRequest(), event.getResponse());
	}

	@Override
	protected boolean isConcurrency() {
		return true;
	}

}
